package com.tqfframe.studydemo.myDubboRpc.customer;


import com.tqfframe.studydemo.myDubboRpc.api.UserApi;
import com.tqfframe.studydemo.myDubboRpc.core.Clinet;
import com.tqfframe.studydemo.myDubboRpc.core.RpcClinet;

import java.io.IOException;

/**
 * @Author: 唐祺峰
 * @Date: 2020/12/4 0004 9:38
 * @Version 1.0
 */
public class ClintDemo {
    public static void main(String[] args) throws IOException {
        Clinet clinet = new RpcClinet();
        UserApi user = (UserApi) clinet.getServer(UserApi.class);
        user.insert("张",11,1);
        user.insert("小",12,2);
        user.insert("胡",44,3);
        System.out.println(user.getUserInfo(2));
        user.delete(3);
        System.out.println(user.getAllUser());
    }
}
